package com.thoughtworks.biblioteca;

//Understands a book that can be checked out from the library
public class Book {
	private int bookNumber;
	private String name;
	private String author;

	public Book(int bookNumber,String name, String author) {
		this.bookNumber=bookNumber;
		this.name = name;
		this.author = author;
	}

	public String getBookDetails() {
		return this.name + " by " + this.author;
	}

	public boolean checkAvailability(int bookNumber) {
		if(this.bookNumber==bookNumber){
			return true;
		}
		return false;
	}

}